<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 
class Main extends Controller {

	function Main()
	{
		parent::Controller();	
	}
	
	function index()
	{
		$data=init_vars("Home",$this);
		$this->load->view('main',$data);
	}
	function info()
	{
		$data=init_vars("Home",$this);
		
		//$data['js'].= script_import(site_url("js/info.js"));
		//$data['css'].= css_import(site_url("css/info.css"));
		
		$this->load->model('main_model');
		$data['articles'] = $this->main_model->getArticles('info');
		
		$this->load->view('articles',$data);
	}
	
}